package edu.sctu.practice.class02.lvchang.parametersReturn;

/**
 * Created by Administrator on 2015/9/18.
 */
public class OtherDog extends Dog {

    public OtherDog(String newName, int newAge, String newColor) {
        name = newName;
        age = newAge;
        color = newColor;
    }

    public void judgeNumber() {
        if (number == 100011) {
            setName();
            setAge();
            setColor();
        } else {
            setName();
            setNumber();
            setAge();
            setSex();
            setColor();
        }

    }
}
